import {http} from "@/utils/http";
import type {ProfileDetail, ProfileParams} from "@/types/member";
//获取个人信息
export const memberProfileApi=()=>{
  return http<ProfileDetail>({
    method:'GET',
    url:'/member/profile'
  })
}
//修改个人信息
export const postMemberProfileApi=(data:ProfileParams)=>{
  return http<ProfileDetail>({
    method:'PUT',
    url:'/member/profile',
    data
  })
}
